package cn.wp.user.service;

import cn.wp.basic.exception.CustomException;
import cn.wp.basic.service.IBaseService;
import cn.wp.user.domain.User;
import cn.wp.user.dto.UserDto;

public interface IUserService extends IBaseService<User> {
    /**
     * 验证手机号
     * @param phone 手机号码
     * @throws CustomException
     */
    void checkPhone(String phone) throws CustomException;

    /**
     * 注册数据
     * @param userDto   注册时的临时数据（phone code password configPassword）
     */
    void register(UserDto userDto) throws CustomException;

    User loadByLoginInfoId(Long id);
}
